package com.hdaccp.letting.controller;

import com.hdaccp.letting.entity.Userinfo;
import com.hdaccp.letting.service.UserInforService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
@RequestMapping("/user")
public class UserInfoController {
    @Resource
    private UserInforService userInforService ;
    @RequestMapping("/query")
    @ResponseBody
    public List<Userinfo> query(){
        return userInforService.query();
    }

}
